CC = g++ -O3 -march=opteron -m64 -mfpmath=sse -funroll-loops -ffast-math -lpthread
OBJECTS = tools2DPC.o ScanData2DPC.o pocs2DPC.o P1hilbert2DPC.o P2compact2DPC.o P3apriori2DPC.o P5nonneg2DPC.o
pocs2: $(OBJECTS)
	$(CC) $(OBJECTS) -o bin/exec/pocs2DPC
tools2DPC.o: tools2DPC.cpp pocs2DPC.h ScanData2DPC.h includes2DPC.h
	$(CC) -c tools2DPC.cpp
ScanData2DPC.o: ScanData2DPC.h ScanData2DPC.cpp includes2DPC.h
	$(CC) -c ScanData2DPC.cpp
pocs2DPC.o: pocs2DPC.h pocs2DPC.cpp includes2DPC.h
	$(CC) -c pocs2DPC.cpp
P1hilbert2DPC.o: pocs2DPC.h P1hilbert2DPC.cpp includes2DPC.h
	$(CC) -c P1hilbert2DPC.cpp
P2compact2DPC.o: pocs2DPC.h P2compact2DPC.cpp includes2DPC.h
	$(CC) -c P2compact2DPC.cpp
P3apriori2DPC.o: pocs2DPC.h P3apriori2DPC.cpp includes2DPC.h
	$(CC) -c P3apriori2DPC.cpp
P5nonneg2DPC.o: pocs2DPC.h P5nonneg2DPC.cpp includes2DPC.h
	$(CC) -c P5nonneg2DPC.cpp

clean:
	rm *.o bin/exec/pocs2DPC *~
cleanobj:
	rm *.o
